<?php

namespace app\admin\model;

use think\Model;

/**
 * 社群售卖反馈表
 * Class ResourceSaleFeedback
 * @package app\admin\model
 */
class ResourceSaleFeedbackSub extends Model
{
    /**
     * 获取反馈用户
     * @param $where
     * @return array
     */
    public static function getResourceSaleFeedbackSub($where)
    {
        $data = self::alias('s')
            ->join('users u','s.uid = u.id','left')
            ->field('s.*,u.nickname,u.headimg')
            ->where($where)
            ->select();

        return $data ? $data->toArray() : [];
    }

}